﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace ApiTest.Controllers
{
    public class HomeController : ApiController
    {
        public dynamic Get()
        {
           // this.User
            //var values = this.ControllerContext.RouteData.Route.GetVirtualPath(this.Request,this.ControllerContext.RouteData.Values);
            var values = Request.Content.Headers;
            return values;
        }
        public User Post(User user)
        {
            return user;
        }
    }
    public class User
    {
        public int Id { get; set; }
        public string name { get; set; }
    }
}
